package JavaSEAdvance.day01_extends.d011_constructor;

/**
 * @author Xiao
 * @date 2021/7/15
 */
public class Phone {
    private String brand;
    private int price;
    private String color;

    public Phone() {
    }

    public Phone(String brand, int price, String color) {
        this.brand = brand;
        this.price = price;
        this.color = color;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void call (String name) {
        System.out.println("给" + name + "打电话。");
    }
    public void xiaoAi () {
        System.out.println("Hello, xiaoAi!");
    }
}
